package com.tsinghuabigdata.edu.ddmath.module.ddwork;

import android.app.Activity;
import android.os.Bundle;
import android.widget.ImageView;

import com.tsinghuabigdata.edu.ddmath.R;
import com.tsinghuabigdata.edu.ddmath.activity.RoboForToolBarActivity;
import com.tsinghuabigdata.edu.ddmath.module.ddwork.view.DragImage;
import com.tsinghuabigdata.edu.ddmath.util.PicassoUtil;

/**
 *
 */
public class TestActivity extends RoboForToolBarActivity {

    private DragImage dragImage;
    private Activity mActivity;
    private ImageView imageView;

    @Override
    protected int getContentViewId() {
        return R.layout.activity_test;
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        //setContentView(R.layout.activity_test);

        //dragImage = (DragImage)findViewById( R.id.test_dragimage );

        mActivity = this;
        imageView = (ImageView)findViewById( R.id.testImage );
        String comUrl = "http://f11.baidu.com/it/u=798826327,3417388234&fm=76";

        PicassoUtil.getPicasso(this).load(comUrl).placeholder(R.mipmap.ic_launcher).into(imageView);


        new Thread(new Runnable() {
            @Override
            public void run() {



            }
        }).start();
    }

}
